class TeamListEntity {
  TeamListData data;
  int code;
  String msg;

  TeamListEntity({this.data, this.code, this.msg});

  TeamListEntity.fromJson(Map<String, dynamic> json) {
    data =
        json['data'] != null ? new TeamListData.fromJson(json['data']) : null;
    code = json['code'];
    msg = json['msg'];
  }
}

class TeamListData {
  List<TeamListDataData> datas;
  List<TeamListDataData> datas2;
  String referrer_num;
  String referrer_name;
  int team1_num;
  int team2_num;
  TeamListData({
    this.datas,
    this.datas2,
    this.referrer_name,
    this.referrer_num,
    this.team1_num,
    this.team2_num,
  });

  TeamListData.fromJson(Map<String, dynamic> json) {
    referrer_name = json['referrer_name'];
    team1_num = json['team1_num'];
    referrer_num = json['referrer_num'];
    team2_num = json['team2_num'];
    if (json['list'] != null) {
      datas = new List<TeamListDataData>();
      (json['list'] as List).forEach((v) {
        datas.add(new TeamListDataData.fromJson(v));
      });
    }
    if (json['teamlist2'] != null) {
      datas2 = new List<TeamListDataData>();
      (json['teamlist2'] as List).forEach((v) {
        datas2.add(new TeamListDataData.fromJson(v));
      });
    }
  }
}

class TeamListDataData {
  String uid;
  String group_id;
  String is_buy;
  String name;
  String avatar;
  String group_name;
  String register_time;
  String referrer_num;
  String referrer_name;
  TeamListDataData(
      {this.uid,
      this.group_id,
      this.is_buy,
      this.name,
      this.avatar,
      this.group_name,
      this.register_time,
      this.referrer_num,
      this.referrer_name});

  TeamListDataData.fromJson(Map<String, dynamic> json) {
    uid = json['uid'].toString();
    is_buy = json['is_buy'];
    group_id = json['group_id'].toString();
    avatar = json['avatar'];
    name = json['name'];
    group_name = json['group_name'];
    register_time = json['register_time'];
    referrer_num = json['referrer_num'].toString();
    referrer_name = json['referrer_name'];
  }
}
